VERREGEX = /<key>CFBundleVersion<\/key>\s+<string>([0-9.]+)<\/string>/
File.open("Info.plist") do |f|
  plist = f.read
  if plist =~ VERREGEX
    print $1
  else
    print "0.0.0"
  end
end
